import ImageTitle from './ImageTitle/index'
import TestComponent from './test/index' 
                         
const components = [
    ImageTitle,
    TestComponent
]

const install = function (Vue,ops = {}){
    components.map(component => {
        Vue.component(component.name,component);
    })
}

// 支持使用标签方式引入
if (typeof window !== 'undefined' && window.Vue){
    install.use(window.Vue);
}

export default{
    //总体 ？？
    install,
    //支持按需引入 ？？？
    ImageTitle,
    TestComponent
}